Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] canvas/preview: Fix workflow preview rendering #2586

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

ales-erjavec
Copy link
Contributor

Issue

Most widget icons are not displayed in the workflow preview due to QTBUG-63159

Description of changes

Reimplement QSvgGenerator.metric to report proper device pixel ratio.

Includes
  • Code changes
  • Tests
  • Documentation

Reimplement QSvgGenerator.metric to account for QTBUG-63159
Copy link
Member

@astaric astaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested with PyQt 4.11 and 5.6 and it fixes the problem for both.

@@ -902,6 +902,17 @@ def font_from_dict(font_dict, font=None):
return font


if QT_VERSION >= 0x50900 and \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be pulled to the top of the file (after imports?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep it near grab_svgwhere it is used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@astaric astaric merged commit c95965b into biolab:master Sep 13, 2017
@ales-erjavec ales-erjavec deleted the fixes/preview-render-svg-icons branch November 14, 2017 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants